package com.ruoyi.mdm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mdm.mapper.SkuMasterLogMapper;
import com.ruoyi.mdm.domain.SkuMasterLog;
import com.ruoyi.mdm.service.ISkuMasterLogService;

/**
 * sku主档日志Service业务层处理
 *
 * @author shiseido
 * @date 2025-03-01
 */
@Service
public class SkuMasterLogServiceImpl implements ISkuMasterLogService {
    @Autowired
    private SkuMasterLogMapper skuMasterLogMapper;

    /**
     * 查询sku主档日志
     *
     * @param id sku主档日志主键
     * @return sku主档日志
     */
    @Override
    public SkuMasterLog selectSkuMasterLogById(Long id) {
        return skuMasterLogMapper.selectSkuMasterLogById(id);
    }

    /**
     * 查询sku主档日志列表
     *
     * @param skuMasterLog sku主档日志
     * @return sku主档日志
     */
    @Override
    public List<SkuMasterLog> selectSkuMasterLogList(SkuMasterLog skuMasterLog) {
        return skuMasterLogMapper.selectSkuMasterLogList(skuMasterLog);
    }

    /**
     * 新增sku主档日志
     *
     * @param skuMasterLog sku主档日志
     * @return 结果
     */
    @Override
    public int insertSkuMasterLog(SkuMasterLog skuMasterLog) {
        return skuMasterLogMapper.insertSkuMasterLog(skuMasterLog);
    }

    /**
     * 修改sku主档日志
     *
     * @param skuMasterLog sku主档日志
     * @return 结果
     */
    @Override
    public int updateSkuMasterLog(SkuMasterLog skuMasterLog) {
        return skuMasterLogMapper.updateSkuMasterLog(skuMasterLog);
    }

    /**
     * 批量删除sku主档日志
     *
     * @param ids 需要删除的sku主档日志主键
     * @return 结果
     */
    @Override
    public int deleteSkuMasterLogByIds(Long[] ids) {
        return skuMasterLogMapper.deleteSkuMasterLogByIds(ids);
    }

    /**
     * 删除sku主档日志信息
     *
     * @param id sku主档日志主键
     * @return 结果
     */
    @Override
    public int deleteSkuMasterLogById(Long id) {
        return skuMasterLogMapper.deleteSkuMasterLogById(id);
    }
}
